import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import axios from './axios'
import './beforeRouter.js'
import './directives'
import '@/styles/index.scss'
// --------------------------------------------------
// import GeminiScrollbar from 'vue-gemini-scrollbar'
// Vue.use(GeminiScrollbar)
// --------------------------------------------------
// import echarts from 'echarts'
// Vue.prototype.$echarts = echarts
// import 'echarts/extension/bmap/bmap'
// --------------------------------------------------
import 'viewerjs/dist/viewer.css'
import Viewer from 'v-viewer'
Vue.use(Viewer)
// --------------------------------------------------
Vue.prototype.$axios = axios
Vue.config.productionTip = false
//--------------------------------------------------
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/display.css'
Vue.use(ElementUI)
// --------------------------------------------------
import fullscreen from 'vue-fullscreen'
Vue.use(fullscreen)
// --------------------------------------------------
import * as filter from './filter'
// Object.keys(filter).map((item)=>{
//   return Vue.filter(item,filter[item])
// })
for(let key in filter){
  Vue.filter(key,filter[key])
}
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
